<template>
	<view>
		<view class="">
			组件{{b}}---{{age}}
		</view>
		<button @click="setdata">发射</button>
	</view>
</template>

<!-- <script>
	export default {
		name:"ceshi",
		data() {
			return {
				
			};
		},
		props:["b","age"],
			
		methods:{
			setdata(){
				this.$emit("setdata",200)
			}
		}
	}
</script> -->
<script setup>
	const props=defineProps(["b","age"])
	const emits=defineEmits(["setdata"])
	const setdata=()=>{
		emits("setdata",520)
	}
</script>

<style>

</style>